﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgExternos.aspx.cs" Inherits="EGuayas.Web.Auditoria.Expedientes.pgExternos" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link  href="~/Resources/css/Style.css"  rel="stylesheet" />
    <!-- Load Ext JS --> 
    <script src="../../Resources/js/Global.js"></script>
   
</head>
<body> 
  <form id="Form1" runat="server"> 
  <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
      <Items> 
         <ext:FormPanel ID="FormPanel1" runat="server" Region="Center" Layout="VBoxLayout">
            <LayoutConfig>
                    <ext:VBoxLayoutConfig Align="Stretch" />
            </LayoutConfig>
            <Items>
                <ext:Panel ID="Panel2" 
                    runat="server" 
                    Header="false" 
                    Border="false" 
                    BodyPadding="15" 
                    Layout="FitLayout"
                    Collapsible="true">
                    <Items>
                        <ext:Panel ID="Panel3" 
                            runat="server" 
                            Title="Expediente de Auditoria"                          
                            BodyStyle="10px 5px 5px;" 
                            Layout="FormLayout">                         
                            <Items>
                                 <ext:FormPanel 
                                    ID="FormPanel6" 
                                    runat="server" 
                                    BodyPadding="5"   
                                    ButtonAlign="Right"
                                    Height="150"
                                    Border="false"
                                    Layout="FormLayout">
                                    <Items>                                   
                                        <ext:TextField ID="txtProyecto" runat="server"    FieldLabel="Nombre de proyectos"  AnchorHorizontal="80%"   />
                                        <ext:FormPanel 
                                            ID="frmSeekPromotor" 
                                            runat="server"                                                              
                                            ButtonAlign="Right"
                                            Height="90"
                                            Border="false"
                                            >
                                            <Items>
                                                 <ext:FieldSet ID="FieldSet1" 
                                                    runat="server"
                                                    Title="Promotor"
                                                    Collapsible="false"
                                                     Flex="1"
                                                    >
                                                    <Defaults>
                                                        <ext:Parameter Name="labelWidth" Value="89" Mode="Raw" />
                                                    </Defaults>
                                                    <Items>
                                                            <ext:FieldContainer ID="FieldContainer2" 
                                                            runat="server"
                                                            MsgTarget="Side" 
                                                        
                                                            Layout="HBoxLayout">
                                                            <Defaults>
                                                                <ext:Parameter Name="margins" Value="0 5 0 0" Mode="Value" />
                                                            </Defaults>
                                                            <Items>
                                                                <ext:Hidden Text="" ID="hddIdPromotor"   Name="Id"    runat  ="server"></ext:Hidden>
                                                           
                                                                <ext:TextField ID="txtCedulaPromo" 
                                                                    runat="server"                                                           
                                                                    FieldLabel="Cedula"
                                                                    EnableKeyEvents="true"
                                                                    Name="Identificacion"
                                                                    MaskRe="[\d]"                              
                                                                    MinLength="10"
                                                                    MaxLength="10">                                                           
                                                                    <Listeners>
                                                                        <KeyDown  Handler="return wucFnSeek.HandleKeyPress(item,e);"/>                                                            
                                                                    </Listeners>
                                                                    
                                                                </ext:TextField>  
                                                                <ext:TextField ID="txtNombrePromo" 
                                                                    runat="server" 
                                                                    Flex="1" 
                                                                    FieldLabel="Nombre"
                                                                    Name="Nombre"
                                                                    />                            
                                                                <ext:TextField ID="txtApellidoPromo" 
                                                                    runat="server" 
                                                                    Flex="1" 
                                                                    Name="Apellido" 
                                                                    />
                                                                <ext:Button ID="btnErase"                                                         
                                                            runat="server"
                                                            FormBind="true"           
                                                            Text="Limpiar"
                                                            Icon="Erase"
                                                            Width="90">
                                                            <Listeners>
                                                                <Click Handler="wucFnSeek.clearFind();" />
                                                            </Listeners>
                                                        </ext:Button>
                                                            <ext:Button ID="btnSeek"
                                                         
                                                            runat="server"
                                                            FormBind="true"           
                                                            Text="Buscar"
                                                            Icon="Find"
                                                            Width="90">
                                                            <Listeners>
                                                                <Click Handler="wucFnSeek.showWin();" />
                                                            </Listeners>
                                                        </ext:Button>
                                                            </Items>
                                                        </ext:FieldContainer>
                                                            
                                                  </Items>
                                                </ext:FieldSet>
                                           </Items>
                                        </ext:FormPanel>                              
                                    </Items>
                                     <Buttons>                                                    
                                            <ext:Button ID="btnCaledarizar" runat="server" Text="Calendarizar">
                                                 <DirectEvents>
                                                        <Click OnEvent="btnCaledariza_Click">
                                                            <ExtraParams>
                                                                <ext:Parameter Name="Identificacion" Value="#{hddIdPromotor}.getValue()" Mode="Raw"/>
                                                                <ext:Parameter Name="Proyecto" Value="#{txtProyecto}.getValue()" Mode="Raw"/>
                                                          
                                                             </ExtraParams>
                                                            <EventMask ShowMask="True"></EventMask>
                                                        </Click>
                                            </DirectEvents>
                                            </ext:Button>
                                     </Buttons>
                                 </ext:FormPanel>   
                                </Items>
                              </ext:Panel>
                    </Items>
                </ext:Panel>
                <ext:Panel ID="pnlCalendarizacion" 
                    runat="server" 
                    Header="false" 
                    Border="false" 
                    Hidden="true"
                    BodyPadding="15" 
                    Layout="Fit"
                    Collapsible="true">
                    <Items>
                         <ext:TabPanel ID="TabPanel1" runat="server"  EnableTabScroll="true">
                            <Items> 
                               <ext:Panel ID ="tab1Frm" runat="server"  ButtonAlign ="Center" Title="Auditoria de Cumplimiento" 
                                    Layout="AnchorLayout"  >
                                    <Items>
                                        <ext:TextField ID="txtCodigoProyecto" runat="server" FieldLabel="Código de proyecto"  />
                                         <ext:FormPanel  
                                            Collapsible="true"
                                            ID="frmCumpl" 
                                            runat="server" 
                                            Region="East"
                                            Split="true"
                                            Margins="0 5 5 5"
                                            BodyPadding="2"
                                            Frame="true" 
                                            Title="Fecha Cumplimiento"                                      
                                            Icon="User"
                                            DefaultAnchor="100%" 
                                            Height="150"
                                            AutoScroll="True">
                                            <Items>
                                                <ext:DateField ID="dfFechaAlert" runat="server" FieldLabel="Fecha Alerta" Name="FechaAlerta" Format="yyyy-MM-dd" />                                                
                                                <ext:DateField ID="dfFechaCumpl" runat="server" FieldLabel="Fecha Cumplimiento" Name="FechaCumpl" Format="yyyy-MM-dd" />                                           
                                            </Items>
                                             <Buttons>                                                    
                                                    <ext:Button ID="btnAsignar" runat="server" Text="Asignar">
                                                        <Listeners>
                                                            <Click Handler="" />
                                                        </Listeners>
                                                    </ext:Button>
                                             </Buttons>
                                        </ext:FormPanel>
                                         <ext:FormPanel 
                                            ID="fmpProrroga" 
                                            runat="server" 
                                            Region="East"
                                            Split="true"
                                            Margins="0 5 5 5"
                                            BodyPadding="2"
                                            Frame="true" 
                                            Title="Prorroga"                                      
                                            Icon="User"
                                            DefaultAnchor="100%" 
                                            Height="90"
                                            AutoScroll="True"
                                              Collapsible="true">
                                            <Items>
                                                <ext:DateField ID="dfFechaProrrog" runat="server" FieldLabel="Fecha Alerta" Name="FechaAlerta" Format="yyyy-MM-dd" />                                                
                                            </Items>
                                             <Buttons>                                                    
                                                    <ext:Button ID="Button1" runat="server" Text="Asignar">
                                                        <Listeners>
                                                            <Click Handler="" />
                                                        </Listeners>
                                                    </ext:Button>
                                                </Buttons>
                                        </ext:FormPanel>
                                    </Items>
                                </ext:Panel>
                               <ext:Panel ID ="tab2Frm" runat="server"  ButtonAlign ="Center" Title="Cumplimiento de PMA" 
                                   Layout="AnchorLayout"   >
                                    <Items>
                                        <ext:TextField ID="TextField1" runat="server" FieldLabel="Código de proyecto"  />
                                         <ext:FormPanel 
                                            ID="FormPanel2" 
                                            runat="server" 
                                            Region="East"
                                            Split="true"
                                            Margins="0 5 5 5"
                                            BodyPadding="2"
                                            Frame="true" 
                                            Title="Fecha Cumplimiento"                                      
                                            Icon="User"
                                            DefaultAnchor="100%" 
                                            Height="150"
                                            AutoScroll="True">
                                            <Items>
                                                <ext:DateField ID="DateField1" runat="server" FieldLabel="Fecha Alerta" Name="FechaAlerta" Format="yyyy-MM-dd" />                                                
                                                <ext:DateField ID="DateField2" runat="server" FieldLabel="Fecha Cumplimiento" Name="FechaCumpl" Format="yyyy-MM-dd" />                                           
                                            </Items>
                                             <Buttons>                                                    
                                                    <ext:Button ID="Button2" runat="server" Text="Asignar">
                                                        <Listeners>
                                                            <Click Handler="" />
                                                        </Listeners>
                                                    </ext:Button>
                                                </Buttons>
                                        </ext:FormPanel>
                                         <ext:FormPanel 
                                            ID="FormPanel3" 
                                            runat="server" 
                                            Region="East"
                                            Split="true"
                                            Margins="0 5 5 5"
                                            BodyPadding="2"
                                            Frame="true" 
                                            Title="Prorroga"                                      
                                            Icon="User"
                                            DefaultAnchor="100%" 
                                            Height="90"
                                            AutoScroll="True">
                                            <Items>
                                                <ext:DateField ID="DateField3" runat="server" FieldLabel="Fecha Alerta" Name="FechaAlerta" Format="yyyy-MM-dd" />                                                
                                            </Items>
                                             <Buttons>                                                    
                                                    <ext:Button ID="Button3" runat="server" Text="Asignar">
                                                        <Listeners>
                                                            <Click Handler="" />
                                                        </Listeners>
                                                    </ext:Button>
                                                </Buttons>
                                        </ext:FormPanel>
                                    </Items>
                                </ext:Panel>
                               <ext:Panel ID ="tab3Frm" runat="server"  ButtonAlign ="Center" Title="Monitoreo" 
                                   Layout="AnchorLayout">
                                    <Items>
                                        <ext:TextField ID="TextField2" runat="server" FieldLabel="Código de proyecto"  />
                                         <ext:FormPanel 
                                            ID="FormPanel4" 
                                            runat="server" 
                                            Region="East"
                                            Split="true"
                                            Margins="0 5 5 5"
                                            BodyPadding="2"
                                            Frame="true" 
                                            Title="Fecha Cumplimiento"                                      
                                            Icon="User"
                                            DefaultAnchor="100%" 
                                            Height="150"
                                            AutoScroll="True">
                                            <Items>
                                                <ext:DateField ID="DateField4" runat="server" FieldLabel="Fecha Alerta" Name="FechaAlerta" Format="yyyy-MM-dd" />                                                
                                                <ext:DateField ID="DateField5" runat="server" FieldLabel="Fecha Cumplimiento" Name="FechaCumpl" Format="yyyy-MM-dd" />                                           
                                            </Items>
                                             <Buttons>                                                    
                                                    <ext:Button ID="Button4" runat="server" Text="Asignar">
                                                        <Listeners>
                                                            <Click Handler="" />
                                                        </Listeners>
                                                    </ext:Button>
                                                </Buttons>
                                        </ext:FormPanel>
                                         <ext:FormPanel 
                                            ID="FormPanel5" 
                                            runat="server" 
                                            Region="East"
                                            Split="true"
                                            Margins="0 5 5 5"
                                            BodyPadding="2"
                                            Frame="true" 
                                            Title="Prorroga"                                      
                                            Icon="User"
                                            DefaultAnchor="100%" 
                                            Height="90"
                                            AutoScroll="True">
                                            <Items>
                                                <ext:DateField ID="DateField6" runat="server" FieldLabel="Fecha Alerta" Name="FechaAlerta" Format="yyyy-MM-dd" />                                                
                                            </Items>
                                             <Buttons>                                                    
                                                    <ext:Button ID="Button5" runat="server" Text="Asignar">
                                                        <Listeners>
                                                            <Click Handler="" />
                                                        </Listeners>
                                                    </ext:Button>
                                                </Buttons>
                                        </ext:FormPanel>
                                    </Items>
                                </ext:Panel>
                           
                                
                                </Items>
                         </ext:TabPanel>
                    </Items>
                   </ext:Panel>
             </Items>
       </ext:FormPanel>     
      <ext:Window 
        ID="winSeekPromotor" 
        runat="server"            
        Icon="GroupGo"
        Height="350" 
        Width="590"
        ButtonAlign="Center"
        BodyStyle="background-color: #fff;" 
        BodyPadding="5"            
        CloseAction="Destroy"
        Title="Busqueda de promotores"
        Closable="false"
        Layout="AnchorLayout"
        Hidden="true">
        <Content>
            <ext:FormPanel 
                ID     ="forSeekDetailPromotor" 
                Border ="false"
                runat  ="server"
                 Anchor="100%"
                BodyPadding="10">
                <Items>
                    <ext:Hidden Text="" ID="hddnDocUpId"   Name="Id"    runat  ="server"></ext:Hidden>
                    <ext:Panel ID="Panel1"  runat="server"   Layout="FormLayout"  Border="false"   ButtonAlign="Center">
                        <Items>
                            <ext:TextField ID="txtIdentificacion" runat="server"  Name="Identificacion" 
                                MaskRe="[\d]"                              
                                MinLength="10"
                                MaxLength="10"
                                FieldLabel="Identificacion"  Width="300"></ext:TextField>
                            <ext:FieldContainer ID="FieldContainer1" 
                            runat="server"
                            Border="false"
                            CombineErrors="true"
                            MsgTarget="Side"
                            FieldLabel="Nombres"
                            Layout="HBoxLayout">
                            <Defaults>
                                <ext:Parameter Name="HideLabel" Value="true" Mode="Raw" />
                                <ext:Parameter Name="margins" Value="0 5 10 0" Mode="Value" />
                            </Defaults>
                                <Items>
                                  <ext:TextField ID="txtNombre" runat="server" Width="150" Name="Nombre"></ext:TextField>
                                  <ext:TextField ID="txtApellido" runat="server" Width="150" Name="Apellido"></ext:TextField>
                                  <ext:Button runat="server" ID="btnBuscar" Text="Buscar"   Icon="Find">
                                    <DirectEvents>
                                        <Click OnEvent="btnBuscarUsuarios_Click">
                                            <ExtraParams>
                                                <ext:Parameter Name="Identificacion" Value="#{txtIdentificacion}.getValue()" Mode="Raw"/>
                                                <ext:Parameter Name="Nombre" Value="#{txtNombre}.getValue()" Mode="Raw"/>
                                                <ext:Parameter Name="Apellido" Value="#{txtApellido}.getValue()" Mode="Raw"/>
                                             </ExtraParams>
                                            <EventMask ShowMask="True"></EventMask>
                                        </Click>
                                    </DirectEvents>
                                 </ext:Button>
                                 <ext:Button runat="server" ID="btnNuevo" Text="Nuevo" Icon="UserAdd" OnClientClick="wucFnSeek.CreatePanelNuevo();">
                                    
                                 </ext:Button>
                                </Items>
                            </ext:FieldContainer>
     
                        </Items>
                    
                 </ext:Panel>
               
                 <ext:GridPanel
                        ID="gpDocumentosLoadUser"
                        runat="server" 
                        Width="550"                                        
                        Region="Center"
                        >
                        <Store>
                            <ext:Store ID="stoListaUsuarios" runat="server">
                                <Model>
                                    <ext:Model ID="modelUsuarios" runat="server" IDProperty="Id">
                                        <Fields>
                                                <ext:ModelField Name="Login" Type="String" />
                                                <ext:ModelField Name="FechaCreacion" Type="Date" />                                                                 
                                                <ext:ModelField Name="Clave" Type="String" />
                                                <ext:ModelField Name="Id" Type="String" />
                                                <ext:ModelField Name="Identificacion" Type="String" />
                                                <ext:ModelField Name="Nombre" Type="String" />
                                                <ext:ModelField Name="Apellido" Type="String" />
                                                <ext:ModelField Name="Direccion" Type="String" />
                                                <ext:ModelField Name="Email" Type="String" />
                                                <ext:ModelField Name="Estado" Type="String" />
                                                <ext:ModelField Name="PersonaId" Type="String" />
                                                <ext:ModelField Name="RolId" Type="String" />
                                                <ext:ModelField Name="ParroquiaId" Type="String" />
                                                <ext:ModelField Name="Rol" Type="String" /> 
                                                <ext:ModelField Name="RolCodigo" Type="String" />   
                                        </Fields>
                                    </ext:Model>
                                </Model>                                      
                                                                                                                  
                            </ext:Store>
                                                        
                        </Store>
                        <ColumnModel ID="ColumnModel2" runat="server">
                            <Columns>
                                <ext:Column ID="Column1"  runat="server" Text="Id" DataIndex="Id" Flex="1" Hidden="true"/>
                                <ext:Column ID="Column4"  runat="server" Text="Identificación" DataIndex="Identificacion" Flex="2"/>  
                                <ext:Column ID="Column2"  runat="server" Text="Nombre" DataIndex="Nombre" Flex="2"/>
                                <ext:Column ID="Column3"  runat="server" Text="Apellido" DataIndex="Apellido" Flex="2"/>                                
                                <ext:DateColumn ID="DateColumn1" runat="server" Text="Fecha" Width="95" DataIndex="FechaCreacion" Format="dd-m-yy" />
                           </Columns>                                                    
                        </ColumnModel>
                        <SelectionModel>
                            <ext:RowSelectionModel runat="server" SingleSelect="true">
                                 <Listeners>
                                    <Select Handler=" wucFnSeek.selectionChange(record);" />
                               
                                 </Listeners>
                            </ext:RowSelectionModel>
                        </SelectionModel>
                        <View>
                            <ext:GridView ID="GridView1" runat="server" StripeRows="true" />                   
                        </View>            
                        <BottomBar>
                                <ext:PagingToolbar ID="PagingToolbar1" runat="server">
                                <Items>
                                    <ext:Label ID="Label1" runat="server" Text="Filas por página:" />
                                    <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
                                    <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                        <Items>
                                            <ext:ListItem Text="5" />
                                            <ext:ListItem Text="10" />
                                            <ext:ListItem Text="15" />
                                            <ext:ListItem Text="20" />
                                            <ext:ListItem Text="25" />
                                            <ext:ListItem Text="30" />
                                            <ext:ListItem Text="35" />
                                            <ext:ListItem Text="40" />
                                            <ext:ListItem Text="45" />
                                            <ext:ListItem Text="50" />
                                        </Items>
                                        <SelectedItems>
                                            <ext:ListItem Value="10" />
                                        </SelectedItems>
                                        <Listeners>
                                            <Select Handler="#{gpDocumentosLoadUser}.store.pageSize = parseInt(this.getValue(), 10); #{gpDocumentosLoadUser}.store.load();" />
                                        </Listeners>
                                    </ext:ComboBox>
                                </Items>
                  
                            </ext:PagingToolbar>
                        </BottomBar>                                                       
                    </ext:GridPanel>
                </Items>
         
            </ext:FormPanel>
          
       </Content>
        <Buttons>
             <ext:Button ID="btnWinClose" runat="server" Text="Cerrar"  OnClientClick="wucFnSeek.closeWin();">
                <Listeners>                     
                </Listeners>
            </ext:Button>
        </Buttons>
    
    </ext:Window> 
   </Items>
  </ext:Viewport>
  </form>
   <ext:XScript ID="XScript1" runat="server">
        <script>
         
            var wucFnSeek = new Object();
            wucFnSeek.IdeUser = '';//Almacenar temporalmente=Identificador de usuario
            wucFnSeek._id = "pnlContentUrlDinamic";
            wucFnSeek._winnew = null;
            wucFnSeek.myPanel = null;
            wucFnSeek.clearFind = function () {
                App.hddIdPromotor.setValue('');
                App.txtNombrePromo.setValue('');
                App.txtApellidoPromo.setValue('');
                App.txtCedulaPromo.setValue('');
            };
            wucFnSeek.getIdContentDinamic = function () {
                return (wucFnSeek._id);
            };
            wucFnSeek.CreatePanelNuevo = function () {
                App.winSeekPromotor.hide();
                App.direct.SetInfoPromotor(App.txtIdentificacion.getValue(), App.txtNombre.getValue(), App.txtApellido.getValue(), App.gpDocumentosLoadUser.getRowsValues().length, {
                    success: function (valReturn) {
                        wucFnSeek._winnew = new Ext.Window({
                                   closeAction: "destroy",
                                   renderTo: Ext.getBody(),
                                   title:"Nuevo Promotor",
                                   iconCls: "#UserAdd",
                                   resizable: true,
                                   maximizable: false,
                                   minimizable: false,
                                   collapsible: false,
                                   draggable: true,
                                   isMinimized: false,
                                   isMaximized: false,
                                   minWidth: 500,
                                   minHeight: 450,
                                   width: 680,
                                   height: 460,
                                   isModal: true,
                                   constrain: true,
                                   loader: {
                                       url: "../../Usuario/pgPromotor.aspx",
                                       renderer: "frame",
                                       disableCaching: true,
                                       loadMask: {
                                           showMask: true
                                       },
                                       listeners: {
                                           load: function (control) {
                                               control.target.iframe.dom.contentWindow.parentWindow = control.target;
                                           }
                                       }
                                   },
                                   listeners: {
                                       close: {
                                           fn: function (el) {
                                               el.destroy();
                                               //Al cerrar ventana para crear promotor nuevo; abre ventana de busquedad
                                               App.winSeekPromotor.show();
                                           }
                                       }
                                   }
                               });
                        wucFnSeek._winnew.show();
                    }
                });
               
           
            
            };
         
           wucFnSeek.HandleKeyPress = function (item, e) {
              //56
              if (e.getKey() == Ext.EventObject.ENTER) {
                e.preventDefault();
                //
                App.direct.BusquedaPromotor(item.getValue(),{
                    success: function (valReturn) {
                        if (valReturn!=null)
                        {
                            App.hddIdPromotor.setValue(valReturn.Id);
                            App.txtNombrePromo.setValue(valReturn.Nombre);
                            App.txtApellidoPromo.setValue(valReturn.Apellido);
                            App.txtCedulaPromo.setValue(valReturn.Identificacion);
                        }
                    }
                });
                return (true);
            }
            return (false);
        };
        wucFnSeek.closeWin = function () {
            wucFnSeek.win.hide();
        };
        wucFnSeek.showWin = function () {
            wucFnSeek.win = App.winSeekPromotor;
            var rec = App.frmSeekPromotor.getForm().getValues();
            App.txtNombre.setValue(rec.Nombre);
            App.txtApellido.setValue(rec.Apellido);
            App.txtIdentificacion.setValue(rec.Identificacion);

            App.direct.BusquedaPromotorCriterios(App.txtIdentificacion.getValue(),App.txtNombre.getValue(),App.txtApellido.getValue(), {
                success: function () {
                  
                    wucFnSeek.win.show();
                }
            });
                      
        };
        //
        wucFnSeek.setParameDinamic = function () {

        };

        wucFnSeek.selectionChange = function (item) {
            App.frmSeekPromotor.getForm().reset();
            App.frmSeekPromotor.getForm().loadRecord(item);
                      
            App.winSeekPromotor.hide();
                      
        };
        wucFnSeek._closeWinUserNewPromotor = function () {
            wucFnSeek._winnew.hide();
            App.direct.BusquedaPromotorCriterios(wucFnSeek.IdeUser, '', '', {
                success: function () {

                    App.winSeekPromotor.show();
                }
            });
        };
        App.CloseWinUserNewPromotor = function (ide)
        {
            wucFnSeek.IdeUser = ide;
            Ext.Msg.show({
                title: 'Promotor creado',
                msg: 'Promotor creado',
                buttons: Ext.Msg.OK,
                fn: wucFnSeek._closeWinUserNewPromotor,
                animEl: 'elId'
            });
           
           
          
        };
        </script>
  </ext:XScript>     

</body>
</html>
